package TeacherEvaluation.com.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import TeacherEvaluation.com.dao.classDao;
import TeacherEvaluation.com.entity.ClassInfo;
import TeacherEvaluation.com.entity.Department;

/**
 * 班级管理所用服务层
 * 
 * @author azhao 2019/09/18
 */
@Service
public class classService {
	@Autowired
	private classDao classdao;
	
	//查找有哪些院系
	public List<Department> selectDepartment(){
		return classdao.selectDepartment();
		
	}
	//查询该班级是否以存在
	public int getClassByClassName(String class_name) {
		return classdao.getClassByClassName(class_name);
	}
	//插入班级
	public int insertClass(ClassInfo classInfo) {
		return classdao.insertClass(classInfo);
	}
	//查询所有班级
	public List<ClassInfo> selectClassNum(){
		return classdao.selectClassNum();
	}

}
